package com.dianping.cat.configuration.business.entity;

import com.dianping.cat.configuration.business.BaseEntity;
import com.dianping.cat.configuration.business.IVisitor;













public class BusinessItemConfig
  extends BaseEntity<BusinessItemConfig>
{
  private String m_id;
  private double m_viewOrder;
  private String m_title;
  private boolean m_showCount;
  private boolean m_showAvg;
  private boolean m_showSum;
  private boolean m_alarm = false;
  private boolean m_privilege = false;

/*  30 */   public BusinessItemConfig(String id) { this.m_id = id; }




/*  35 */   public void accept(IVisitor visitor) { visitor.visitBusinessItemConfig(this); }



  public boolean equals(Object obj) {
/*  40 */     if (obj instanceof BusinessItemConfig) {
/*  41 */       BusinessItemConfig _o = (BusinessItemConfig)obj;

/*  43 */       if (!equals(getId(), _o.getId())) {
/*  44 */         return false;
      }

/*  47 */       return true;
    }

/*  50 */     return false;
  }


/*  54 */   public boolean getAlarm() { return this.m_alarm; }



/*  58 */   public String getId() { return this.m_id; }



/*  62 */   public boolean getPrivilege() { return this.m_privilege; }



/*  66 */   public boolean getShowAvg() { return this.m_showAvg; }



/*  70 */   public boolean getShowCount() { return this.m_showCount; }



/*  74 */   public boolean getShowSum() { return this.m_showSum; }



  public String getTitle() { return this.m_title; }



/*  82 */   public double getViewOrder() { return this.m_viewOrder; }






/*  95 */   public boolean isAlarm() { return this.m_alarm; }



/*  99 */   public boolean isPrivilege() { return this.m_privilege; }



/* 103 */   public boolean isShowAvg() { return this.m_showAvg; }



/* 107 */   public boolean isShowCount() { return this.m_showCount; }



/* 111 */   public boolean isShowSum() { return this.m_showSum; }



  public void mergeAttributes(BusinessItemConfig other) {
/* 116 */     assertAttributeEquals(other, "business-item-config", "id", this.m_id, other.getId());

/* 118 */     this.m_viewOrder = other.getViewOrder();

/* 120 */     if (other.getTitle() != null) {
/* 121 */       this.m_title = other.getTitle();
    }

/* 124 */     this.m_showCount = other.getShowCount();

/* 126 */     this.m_showAvg = other.getShowAvg();

/* 128 */     this.m_showSum = other.getShowSum();

/* 130 */     this.m_alarm = other.getAlarm();

/* 132 */     this.m_privilege = other.getPrivilege();
  }

  public BusinessItemConfig setAlarm(boolean alarm) {
/* 136 */     this.m_alarm = alarm;
/* 137 */     return this;
  }

  public BusinessItemConfig setId(String id) {
/* 141 */     this.m_id = id;
/* 142 */     return this;
  }

  public BusinessItemConfig setPrivilege(boolean privilege) {
/* 146 */     this.m_privilege = privilege;
/* 147 */     return this;
  }

  public BusinessItemConfig setShowAvg(boolean showAvg) {
/* 151 */     this.m_showAvg = showAvg;
/* 152 */     return this;
  }

  public BusinessItemConfig setShowCount(boolean showCount) {
/* 156 */     this.m_showCount = showCount;
/* 157 */     return this;
  }

  public BusinessItemConfig setShowSum(boolean showSum) {
/* 161 */     this.m_showSum = showSum;
/* 162 */     return this;
  }

  public BusinessItemConfig setTitle(String title) {
/* 166 */     this.m_title = title;
/* 167 */     return this;
  }

  public BusinessItemConfig setViewOrder(double viewOrder) {
/* 171 */     this.m_viewOrder = viewOrder;
/* 172 */     return this;
  }

  public BusinessItemConfig() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/business/entity/BusinessItemConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */